/**
 * 
 */
package com.sc.softmgr.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.model.SysMenu;
import com.acc.softmgr.model.SysMenuExample;
import com.sc.softmgr.business.dao.SysMenuMapper;
import com.sc.softmgr.business.service.ISysMenuService;

/**
 * 
 * @content
 * 
 * @date 2017年5月12日
 * 
 * @author OprCalf
 * 
 */
@Service
public class SysMenuServiceImpl implements ISysMenuService {

	@Autowired
	private SysMenuMapper sysMenu;

	@Override
	public long countByExample(SysMenuExample example) {
		return sysMenu.countByExample(example);
	}

	@Override
	public int deleteByExample(SysMenuExample example) {
		return sysMenu.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return sysMenu.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SysMenu record) {
		return sysMenu.insert(record);
	}

	@Override
	public int insertSelective(SysMenu record) {
		return sysMenu.insertSelective(record);
	}

	@Override
	public int insertList(List<SysMenu> records) {
		for (SysMenu record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SysMenu> selectByExample(SysMenuExample example) {
		return sysMenu.selectByExample(example);
	}

	@Override
	public SysMenu selectByPrimaryKey(Integer id) {
		return sysMenu.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SysMenu record, SysMenuExample example) {
		return sysMenu.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SysMenu record, SysMenuExample example) {
		return sysMenu.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SysMenu record) {
		return sysMenu.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SysMenu record) {
		return sysMenu.updateByPrimaryKey(record);
	}

	@Override
	public List<SysMenu> selectMenusByUserId(Integer sysUserId) {
		return sysMenu.selectMenusByUserId(sysUserId);
	}

}
